package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 博客对象 ver_blog
 * 
 * @author liuhuizhong
 * @date 2025-08-16
 */
public class VerBlog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 博客唯一ID */
    private Long blogId;

    /** 博客标题 */
    @Excel(name = "博客标题")
    private String title;

    /** URL友好标识（SEO用） */
    @Excel(name = "URL友好标识", readConverterExp = "S=EO用")
    private String slug;

    /** 博客导语/摘要 */
    private String excerpt;

    /** 博客正文（支持HTML） */
    private String content;

    /** 博客封面图URL */
    @Excel(name = "博客封面图URL")
    private String coverImageUrl;

    /** 关联作者ID */
    @Excel(name = "关联作者ID")
    private Long authorId;

    /** 作者名称 */
    @Excel(name = "作者名称")
    private String authorName;

    /** 关联分类ID */
    @Excel(name = "关联分类ID")
    private Long categoryId;

    /** 发布状态：0=未发布，1=已发布 */
    @Excel(name = "发布状态：0=未发布，1=已发布")
    private Integer status;

    /** 阅读量 */
    @Excel(name = "阅读量")
    private Long viewCount;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    public void setBlogId(Long blogId) 
    {
        this.blogId = blogId;
    }

    public Long getBlogId() 
    {
        return blogId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSlug(String slug) 
    {
        this.slug = slug;
    }

    public String getSlug() 
    {
        return slug;
    }
    public void setExcerpt(String excerpt) 
    {
        this.excerpt = excerpt;
    }

    public String getExcerpt() 
    {
        return excerpt;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCoverImageUrl(String coverImageUrl) 
    {
        this.coverImageUrl = coverImageUrl;
    }

    public String getCoverImageUrl() 
    {
        return coverImageUrl;
    }
    public void setAuthorId(Long authorId) 
    {
        this.authorId = authorId;
    }

    public Long getAuthorId() 
    {
        return authorId;
    }
    public void setAuthorName(String authorName) 
    {
        this.authorName = authorName;
    }

    public String getAuthorName() 
    {
        return authorName;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("blogId", getBlogId())
            .append("title", getTitle())
            .append("slug", getSlug())
            .append("excerpt", getExcerpt())
            .append("content", getContent())
            .append("coverImageUrl", getCoverImageUrl())
            .append("authorId", getAuthorId())
            .append("authorName", getAuthorName())
            .append("categoryId", getCategoryId())
            .append("status", getStatus())
            .append("viewCount", getViewCount())
            .append("publishTime", getPublishTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
